package com.cms.manager.service.impl;

import com.cms.common.entity.Dept;
import com.cms.manager.mapper.DeptMapper;
import com.cms.manager.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: ls
 * @Date: 2021-12-21 9:11
 * @Description: 类文件的简单描述
 */
@Service
public class DeptImpl implements DeptService {

    @Autowired
    private DeptMapper deptMapper;

    /**
     * 获取所有的部门（门店）
     * @return
     */
    @Override
    public List<Dept> getList() {
        return deptMapper.selectList(null);
    }
}
